<?php



class FuntCasoMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.FuntCasoMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('funt_caso');
		$tMap->setPhpName('FuntCaso');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('FUNT_CASO_ID', 'FuntCasoId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('FUNM_NINO_ID', 'FunmNinoId', 'int', CreoleTypes::INTEGER, 'funm_nino', 'FUNM_NINO_ID', false, null);

		$tMap->addColumn('FUNCAS_OBSERVACION', 'FuncasObservacion', 'string', CreoleTypes::VARBINARY, false, null);

		$tMap->addColumn('FUNCAS_CODIGO', 'FuncasCodigo', 'string', CreoleTypes::VARCHAR, false, 30);

	} 
} 